package mapper;

import BO.EncodeTestInputBO;
import DO.EncodeTestDataDO;
import org.apache.ibatis.annotations.Delete;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Select;

import java.time.LocalDateTime;
import java.util.List;


@Mapper
public interface EncodeTestDataMapper {

    // 根据测试表的id，查询该条测试的参数信息
    @Select("select * from encode_test_data where test_id = #{id} Order BY param_order")
    List<EncodeTestInputBO> getListById(Integer id);

    @Delete("delete from encode_test_data where test_id = #{id}")
    void deleteByTestId(Integer id);

    // 重新添加参数信息
    void insert(List<EncodeTestDataDO> list);

    @Select("select data from encode_test_data where test_id = #{encodeTestDOId} order by param_order")
    String[] getListByEncodeTestId(Integer encodeTestDOId);
}
